function util:entity_owner/find_son_distance10 with entity @s

execute as @n[distance=..10,type=giant,tag=guardTower.hitbox,nbt={HurtTime:10s},tag=son_entity] run tag @s add temp.hitBox
execute if entity @n[tag=temp.hitBox,distance=..10,type=giant] run return run tag @e[distance=..10,tag=son_entity] remove son_entity
tag @e[distance=..10,tag=son_entity] remove son_entity
return fail